import {createRouter,createWebHashHistory} from 'vue-router'

let router = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:'/',
            redirect:'/addInvest'
        },
        {
          //增加投资信息
            path:'/addInvest',          
            component:()=>import('../views/AddInvestView.vue')
        },
        {
          //显示投资列表
            path:'/showInvest',          
            component:()=>import('../views/ShowInvestView.vue')
        },
        {
          //修改投资列表
            path:'/upInvest',          
            component:()=>import('../views/UpInvewstView.vue')
        }
    ]
})

//导出路由
export default router
